#ifndef REASON_H
#define REASON_H

#include <QDialog>
#include <QCloseEvent>
#include <QPaintEvent>
#include <QPainter>
#include "datebase.h"

namespace Ui {
class Reason;
}

class Reason : public QDialog
{
    Q_OBJECT
    
public:
    explicit Reason(datebase *db,QWidget *parent = 0);
    ~Reason();
    void closeEvent(QCloseEvent *event);
    datebase *myDb;
private slots:
    void databse_check(QSqlDatabase *db);
    void Tool_Visible();
    bool Tool_SetTex(int,QString);
    void on_toolButton_clicked();
    void on_toolButton_2_clicked();
    void on_toolButton_3_clicked();
    void on_toolButton_4_clicked();
    void on_toolButton_5_clicked();
    void on_toolButton_6_clicked();
    void on_toolButton_7_clicked();
    void on_toolButton_8_clicked();
    void on_toolButton_9_clicked();
    void on_toolButton_10_clicked();
    void on_toolButton_11_clicked();
    void on_toolButton_12_clicked();
    void on_pushButton_clicked();
    void paintEvent(QPaintEvent *);
private:
    Ui::Reason *ui;

};

#endif // REASON_H
